package projetjee

class Photo {

	String nom
	String description
	byte[] picture
	
	static hasMany = [photoTag : PhotoTaggee]

    static constraints = {
		picture maxSize:1000000
		description nullable:true	
    }
	
	static mapping = {
		picture type: "binary"
	}
	
}
